<?

class test{
	function __construct(&$obj=false){
		$this->obj=$obj;
	}
	
	function make($var){
		$var->newwar='john';
	}
}

class myobj{
	function __construct(){
		$this->newwar='self';
	}
}

$omyobj=new myobj();
echo $omyobj->newwar,'<br>';

$otest=new test();
$otest->make($omyobj);

echo 'result '.$omyobj->newwar;

?>
